<template>
  <div class="Explorer">

    <div class="toolbar">
      <span>访问路径:</span>
      <input class="path" value="C:\Users\zheng\Desktop\ss">
      <button>&#x21ba;</button>
      <input value="搜索">
      <button>搜索</button>
    </div>
    <div class="main">
      <div class="left">
        <div>
          <span>▶</span>
          <span>☆</span>
          <span>最近访问1</span>
        </div>
        <div>
          <span>▶</span>
          <span>✈</span>
          <span>桌面</span>
        </div>
        <div style="padding-left: 40px">
          <span>▼</span>
          <span>📁</span>
          <span>目录1</span>
        </div>
        <div style="padding-left: 40px">
          <span>▼</span>
          <span>📁</span>
          <span>目录2</span>
        </div>
        <div>
          <span>▼</span>
          <span>🖥</span>
          <span>计算机</span>
        </div>
        <div style="padding-left: 40px">
          <span>▼</span>
          <span>📁</span>
          <span>本地磁盘（C:）</span>
        </div>
        <div style="padding-left: 40px">
          <span>▼</span>
          <span>📁</span>
          <span>本地磁盘（D:）</span>
        </div>

      </div>
      <div class="right">

      </div>
    </div>
    <div class="bottom">

    </div>
  </div>
</template>

<script>
  export default {
    name: 'Explorer',
    data () {
      return {
        msg: 'Welcome to Home'
      }
    },
    methods: {
      test: function () {
        this.$http.get('/posts').then(res => {
          console.log(res)
        })
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .Explorer {
    align-self: center;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .toolbar {
    display: flex;
    padding: 10px 0;
    border-bottom: solid 1px #e2e2e2;
    display: flex;
    align-items: center;
  }

  .toolbar > span {
    padding: 0 15px 0 20px;
  }

  .toolbar > input {
    padding: 5px 10px;
  }

  .toolbar > button {
    padding: 4px 10px;
    margin: 0 20px 0 8px;
    border-color: #c9c9c9;
    color: #636363;
    font-weight: bolder;
  }

  .toolbar .path {
    flex: 1;
  }

  .main {
    flex: 1;
    display: flex;
  }

  .main .left {
    width: 300px;
    border: solid 1px #e2e2e2;
    padding-top: 20px;
  }

  .main > .left > div {
    padding: 8px 10px 8px 20px;
    border-bottom: solid 1px #e2e2e2;
    cursor: pointer;
  }

  .main > .left > div:hover {
    background-color: #dbebff;
  }

  .main > .left > div > span:nth-child(1) {
    color: #919191;
    font-size: 9px;
    padding-right: 10px;
  }

  .main > .left > .sub-items {

  }

  .main .right {
    flex: 1;
    border: solid 1px #e2e2e2;
  }

  .bottom {
    height: 20px;
  }

</style>
